]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
UserMenu: move Install Updates at the end
authorGiovanni Campagna <gcampagna@src.gnome.org>
Tue, 17 Jul 2012 10:20:56 +0000 (12:20 +0200)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Tue, 17 Jul 2012 10:35:08 +0000 (12:35 +0200)
Follow the design update and move the Install Updates item at
the end, together with Power Off.

https://bugzilla.gnome.org/show_bug.cgi?id=680080

js/ui/userMenu.js

index f8a57d2dc86774acae7e6ca274e0ff04de6525d1..f535923ae246aef79f0d71d8647868e3bb9b73f9 100644 (file)
@@ -721,17 +721,17 @@ const UserMenuButton = new Lang.Class({
         item = new PopupMenu.PopupSeparatorMenuItem();
         this.menu.addMenuItem(item);
 
-        item = new PopupMenu.PopupMenuItem(_("Install Updates & Restart"));
-        item.connect('activate', Lang.bind(this, this._onInstallUpdatesActivate));
-        this.menu.addMenuItem(item);
-        this._installUpdatesItem = item;
-
         item = new PopupMenu.PopupAlternatingMenuItem(_("Power Off"),
                                                       _("Suspend"));
         this.menu.addMenuItem(item);
         item.connect('activate', Lang.bind(this, this._onSuspendOrPowerOffActivate));
         this._suspendOrPowerOffItem = item;
         this._updateSuspendOrPowerOff();
+
+        item = new PopupMenu.PopupMenuItem(_("Install Updates & Restart"));
+        item.connect('activate', Lang.bind(this, this._onInstallUpdatesActivate));
+        this.menu.addMenuItem(item);
+        this._installUpdatesItem = item;
     },
 
     _updatePresenceStatus: function(item, event) {